package com.example.sdkintegration;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * SDK集成DEMO 启动类
 */
@EnableFeignClients
@SpringBootApplication
public class SdkIntegrationApplication {

    public static void main(String[] args) {
        // -------------环境变量配置------------
        // 必须: 项目名称配置(同spring.application.name或isyscore.appCode(推荐))
        System.setProperty("project.name", "sdk-integration");
        // 必须: 日志目录, 三方应用必须配置该项, 基本格式为 /home/{isyscore.appCode}/logs/middleware
        System.setProperty("pivot.log.root", "/home/sdk-integration/logs/middleware");
        // 可选: 开发过程中配置zookeeper地址, 部署过程移除该配置使用默认配置即可
//        System.setProperty("zookeeper.address", "zookeeper://10.30.30.xx:2181");

        SpringApplication.run(SdkIntegrationApplication.class, args);
    }

}
